Optimal. Leaf size=105 \[ -\frac {a \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a \sin (e+f x)+a}}-\frac {\sqrt {a} (c+d) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {d} f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2770, 2775, 205} \[ -\frac {a \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a \sin (e+f x)+a}}-\frac {\sqrt {a} (c+d) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {d} f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 2770
Rule 2775
Rubi steps
\begin {align*} \int \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)} \, dx &=-\frac {a \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a+a \sin (e+f x)}}+\frac {1}{2} (c+d) \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx\\ &=-\frac {a \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a+a \sin (e+f x)}}-\frac {(a (c+d)) \operatorname {Subst}\left (\int \frac {1}{a+d x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{f}\\ &=-\frac {\sqrt {a} (c+d) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{\sqrt {d} f}-\frac {a \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{f \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.31, size = 350, normalized size = 3.33 \[ \frac {\sqrt {a (\sin (e+f x)+1)} \left (-\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (c+d \sin (e+f x))}{f}-\frac {i (c+d) \left (\cos \left (\frac {1}{2} (e+f x)\right )-i \sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\log \left (\frac {e^{-i e} \left (2 \sqrt {d} \sqrt {2 c e^{i (e+f x)}-i d \left (-1+e^{2 i (e+f x)}\right )}+2 \sqrt [4]{-1} c-2 (-1)^{3/4} d e^{i (e+f x)}\right )}{\sqrt {d}}\right )-\log \left (\frac {2 f e^{\frac {1}{2} i (e-2 f x)} \left (i \sqrt {d} \sqrt {2 c e^{i (e+f x)}-i d \left (-1+e^{2 i (e+f x)}\right )}+\sqrt [4]{-1} c e^{i (e+f x)}+(-1)^{3/4} d\right )}{\sqrt {d}}\right )\right ) \sqrt {(\cos (e+f x)+i \sin (e+f x)) (c+d \sin (e+f x))}}{\sqrt {d} f}\right )}{2 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {c+d \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.86, size = 945, normalized size = 9.00 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F(-2)] time = 180.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a +a \sin \left (f x +e \right )}\, \sqrt {c +d \sin \left (f x +e \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {a+a\,\sin \left (e+f\,x\right )}\,\sqrt {c+d\,\sin \left (e+f\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \sqrt {c + d \sin {\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________